var Uv = Window.extend({
	parent:null,
	openuv:null,
	openuv_1:null,
	flow:null,
	ctor:function (parent,flow, tag) {
		this._super(parent,flow, tag);
		this.parent=parent;
		this.flow=flow;
	},
	initSp:function (){
		var body = new Button(this.rootNode,
				d_z_index, TAG_BUTTON_UV_BACK,
				"#equitment/UV1800_b.png",
				this.eventMenuCallback,this);
		body.setPosition(gg.width * 0.5, gg.height * 0.5);
		
		this.openuv=new Button(this.rootNode,2,TAG_BUTTON_OPENUV,"#equitment/uv_open_1.png",this.eventMenuCallback,this);
		this.openuv.setPosition(gg.width * 0.60, gg.height * 0.32);
		this.openuv.setVisible(false);
	},
	eventMenuCallback:function(pSender){
		if(cur_tool != TAG_BUTTON_HAND){
			// 描述
			return;
		}
		if(!this.flow.checkTag(pSender.getTag())){
			// 是否可以触发
			_.error();
			ll.tip_layer.updateScore(gg.score);
			return;
		} else {
				_.clever();
				ll.tip_layer.updateScore(gg.score);
		}
		var func=cc.callFunc(function() {
			this.flow.next();
		},this);
		var func1=cc.callFunc(function() {
			this.close();
		},this);
		switch (pSender.getTag()) {
		case TAG_BUTTON_OPENUV:
			pSender.runAction(cc.sequence(func1,cc.delayTime(0.5),func));
			break;
		default:
			break;
		}
	}
});